scrollIntoView

abstract fun scrollIntoView(alignTo: Element.AlignTo)

Scrolls the element's parent container such that the element on which this method is called is visible to the user.

Note: that the element may not be scrolled completely to the top or bottom depending on the layout of other elements.

Since

7.5

Parameters

alignTo

describes how the element will be aligned to the visible area of the scrollable ancestor

Throws

when the document of this element is closed